package cn.qkfintech.visitor.activity;

import android.widget.ImageView;

import butterknife.BindView;
import butterknife.OnClick;
import cn.qkfintech.visitor.R;
import cn.qkfintech.visitor.base.BaseActivity;
import cn.qkfintech.visitor.utils.IdentifyingCodeUtils;

public class LoginActivity extends BaseActivity {

    @BindView(R.id.iv_login_authcode_num)
    ImageView mIvAuthCode;

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_login;
    }

    @Override
    protected void init() {
        mIvAuthCode.setImageBitmap(IdentifyingCodeUtils.getInstance().createBitmap());
    }

    @OnClick(R.id.btn_login)
    public void onLoginClick() {
        HomeActivity.start(this);
        finish();
    }

    @OnClick(R.id.iv_login_authcode_num)
    public void refreshAuthCode() {
        mIvAuthCode.setImageBitmap(IdentifyingCodeUtils.getInstance().createBitmap());
    }
}
